]> dgit.raspbian.org Git - gnome-shell.git/commit
status/network: Stop using radio-mode for VPN items
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 15 Aug 2022 15:40:52 +0000 (17:40 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 30 Aug 2022 15:43:11 +0000 (15:43 +0000)
commit6c56de82ea82e476e17010f2d5e28674ab1217be
tree1081952eeebe4701825c37073ebd4ec53af426d8
parent085102be74f4c98094712a165e5128feaca50438
status/network: Stop using radio-mode for VPN items

If a device has multiple connections set up, then at most one of
those can be active at a time, which is why they are presented
as radio items.

In contrast, VPN connections are not mutually exclusive, each can
be turned on or off independently. Setting :radio-mode on them
currently means that VPN connections can be activated, but never
disabled.

So instead of abusing the :radio-mode property to give VPN items
the UI we want, use regular items that reflect the desired behavior
and explicitly set up the UI the way we want.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2426>
js/ui/status/network.js